package com.abstractFactory;

public class DataAccess {
	private static final String db = "sqlserver";
	
	public static IUser createUser(){
		IUser iu  = null;
		switch (db) {
		case "sqlserver":
			iu = new SqlserverUser();
			break;
		case "access":
			iu = new AccessUser();
			break;
		default:
			
			break;
		}
		return iu;
	}
//	public static IDepartment createDepartment(){
//		
//	}
}
